package com.jic.member.mapper;

import com.jic.member.entity.DisCommissionInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 佣金明细
 * @author : 
 * @email : 
 * @since : 2020-10-03 14:56:08
 * @version : v1.0.0
 */
@Mapper
public interface DisCommissionInfoMapper {

    long insert(DisCommissionInfo commissionInfo);

    long delete(Long id);

    long update(DisCommissionInfo commissionInfo);

    DisCommissionInfo queryByPrimaryKey(Long id);

    List<DisCommissionInfo> query(DisCommissionInfo commissionInfo);

    List<DisCommissionInfo> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("commissionInfo") DisCommissionInfo commissionInfo);

    long queryPageCount(DisCommissionInfo commissionInfo);

    BigDecimal getCommissionCount(DisCommissionInfo commissionInfo);
}